import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/dashboard_entity.dart';

DashboardEntity $DashboardEntityFromJson(Map<String, dynamic> json) {
  final DashboardEntity shipperEntity = DashboardEntity();

  final String? waitingStockInCount = jsonConvert.convert<String>(json['waitingStockInCount']);
  if (waitingStockInCount != null) {
    shipperEntity.waitingStockInCount = waitingStockInCount;
  }
  final String? waitingStockOutCount = jsonConvert.convert<String>(json['waitingStockOutCount']);
  if (waitingStockOutCount != null) {
    shipperEntity.waitingStockOutCount = waitingStockOutCount;
  }
  return shipperEntity;
}

Map<String, dynamic> $DashboardEntityToJson(DashboardEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['waitingStockInCount'] = entity.waitingStockInCount;
  data['waitingStockOutCount'] = entity.waitingStockOutCount;
  return data;
}
